package com.alm.handle.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 任务应用于设备分组
 *
 * @author 詹泽峰
 * @date 2024/08/26 18:25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("alm_group_cron")
public class AlmGroupCron implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分组id
     */
    @TableField(value = "group_id")
    private Integer groupId;

    /**
     * 定时任务实际data区字符串
     */
    @TableField(value = "cron_data")
    private String cronData;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
